﻿using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Channels;

namespace PermitsAndVisasLeadsSyncher.Service_Proxy
{
    [ServiceContract(ConfigurationName = "LeadsServiceXML.pandvWSDLPortType", Namespace = "urn:pandvWSDL")]
    [GeneratedCode("System.ServiceModel", "4.0.0.0")]
    public interface pandvWSDLPortType
    {
        [XmlSerializerFormat(Style = OperationFormatStyle.Rpc, SupportFaults = true, Use = OperationFormatUse.Encoded)]
        [OperationContract(Action = "urn:pandvWSDL#getleads", ReplyAction = "*")]
        [return: MessageParameter(Name = "return")]
        string getleads(string name, string pass, string from, string to);

        [OperationContract(Action = "urn:pandvWSDL#getleads", ReplyAction = "*")]
        [XmlSerializerFormat(Style = OperationFormatStyle.Rpc, SupportFaults = true, Use = OperationFormatUse.Encoded)]
        [return: MessageParameter(Name = "return")]
        string getleadsinfo(string name, string pass);
    }
    [GeneratedCode("System.ServiceModel", "4.0.0.0")]
    public interface pandvWSDLPortTypeChannel : pandvWSDLPortType, IClientChannel, IContextChannel, IChannel, ICommunicationObject, IExtensibleObject<IContextChannel>, IDisposable
    {
    }
    [DebuggerStepThrough]
    [GeneratedCode("System.ServiceModel", "4.0.0.0")]
    public class pandvWSDLPortTypeClient : ClientBase<pandvWSDLPortType>, pandvWSDLPortType
    {
        public pandvWSDLPortTypeClient()
        {
        }

        public pandvWSDLPortTypeClient(string endpointConfigurationName)
            : base(endpointConfigurationName)
        {
        }

        public pandvWSDLPortTypeClient(string endpointConfigurationName, string remoteAddress)
            : base(endpointConfigurationName, remoteAddress)
        {
        }

        public pandvWSDLPortTypeClient(string endpointConfigurationName, EndpointAddress remoteAddress)
            : base(endpointConfigurationName, remoteAddress)
        {
        }

        public pandvWSDLPortTypeClient(Binding binding, EndpointAddress remoteAddress)
            : base(binding, remoteAddress)
        {
        }

        public string getleads(string name, string pass, string from, string to)
        {
            return this.Channel.getleads(name, pass, from, to);
        }

        public string getleadsinfo(string name, string pass)
        {
            return this.Channel.getleadsinfo(name, pass);
        }
    }
}
